using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;
/// <summary>
/// Summary description for category_pc
/// </summary>
public class category_pc
{
    public DBconnect DB = new DBconnect();
    private int _id;

    public int Id
    {
        get { return _id; }
        set { _id = value; }
    }
    private string _name;

    public string Name
    {
        get { return _name; }
        set { _name = value; }
    }
    private int _parents_id;

    public int Parents_id
    {
        get { return _parents_id; }
        set { _parents_id = value; }
    }
    private int _count;

    public int Count
    {
        get { return _count; }
        set { _count = value; }
    }
    private int _order;

    public int Order
    {
        get { return _order; }
        set { _order = value; }
    }
    private int _level;

    public int Level
    {
        get { return _level; }
        set { _level = value; }
    }
    private string _pic_url;

    public string Pic_url
    {
        get { return _pic_url; }
        set { _pic_url = value; }
    }
    private string _keywords;

    public string Keywords
    {
        get { return _keywords; }
        set { _keywords = value; }
    }
	public category_pc()
	{
		//
		// TODO: Add constructor logic here
		//
	}

   public DataTable AllCategories()
    {
        DB.Open();
        DataTable Tmp = new DataTable();
        Tmp = DB.GetDataTable("select * from categories");
        DB.Close();
        return Tmp;
    }

}
